<!DOCTYPE>
<html>
<#include "../head.html">
<body>
	<#include "../top.html">
	<!-- div.main start  -->
	<div class="main">
		<!-- div.main_left start  -->
		<div class="main_left"><#include "left.html"></div>
		<!-- div.main_left end  -->
		<!-- div.main_right start  -->
		<div class="main_right">
			<#include "banner.html">
			<div class="main_content">
			  <form action="" method="post">
				<table  border="0"  cellspacing="1" bgcolor="#CCCCCC" width="100%">
					<tr >
						<td width="" class="main_td">ID</td>
						<td width="*" class="main_td">用户名称</td>
						<td width="*" class="main_td">真实姓名</td>
						<td width="" class="main_td">提现账号</td>
						<td width="" class="main_td">提现银行</td>
						<td width="" class="main_td">支行</td>
						<td width="" class="main_td">提现总额</td>
						<td width="" class="main_td">到账金额</td>
						<td width="" class="main_td">手续费</td>
						<td width="" class="main_td">红包抵扣</td>
						<td width="" class="main_td">提现时间</td>
						<td width="" class="main_td">状态</td>
						<td width="" class="main_td">操作</td>
						<td width="" class="main_td">操作时间</td>
					</tr>
					<#include "../../common/function.html"> 
					<#list list as item>
					<tr>
						<td>${(item.id!0)?c}</td>
						<td><a onclick='tipsWindown("用户详细信息查看","url:get?/admin/attestation/viewUserInfo.html?username=${item.username!}",500,230,"true","","true","text");'
								href="javascript:void(0)">${item.username!}</a></td>
						<td>${item.realname!}</td>
						<td>${item.account!}</td>
						<td>${item.bankname!}</td>
						<td>${item.branch!}</td>
						<td>${format2((item.total!"0"))}</td>
						<td>${format2((item.credited!"0"))}</td>
						<td>${format2((item.fee!"0"))}</td>
						<td>${item.hongbao!0}</td>	
						<td>${dateformat(item.addtime)}</td>
						<td><#if item.status==0||item.status==2>审核中<#elseif item.status==1>成功<#elseif item.status==3>未通过<#else>审核失败</#if></td>
						<td><#if item.status==0||item.status==2><a href="viewCash.html?id=${item.id?c}">审核/查看</a><#else>${item.verify_username!""}</#if></td>

						<td>
						<#if item.status== 0>
						<#else>
						${dateformat(item.verify_time)}
						</#if>
						</td>
					</tr>
					</#list>
					<tr>
						<td colspan="12" class="action">
							<div class="floatl">
					         <a href="#" onclick="exportxls()">导出报表</a>
							</div>
							<#if param??&&param.status??>
								<#assign status=(param.get("status"))?number >
							<#else>
								<#assign status=0>
							</#if>
							<div class="floatr">
开始时间：<input type="text" onClick="change_picktime()" size="10" value="${param.dotime1}"
									class="input_border" name="dotime1" id="dotime1">
						
结束时间：<input type="text" onClick="change_picktime()" size="10" value="${param.dotime2}"
									class="input_border" name="dotime2" id="dotime2">
操作时间：<input type="text" onClick="change_picktime()" size="10" value="${param.succtime1}"
									class="input_border" name="succtime1" id="succtime1">到：<input type="text" onClick="change_picktime()" size="10" value="${param.succtime2}"
									class="input_border" name="succtime2" id="succtime2">
								用户名：<input type="text" name="username" id="username" value="${param.username!}"/> 
								状态<select id="status" >
									<option value="0" <#if status==0 >selected="selected"</#if>>全部</option>
									<option value="1" <#if status==1 >selected="selected"</#if> >已通过</option>
									<option value="2" <#if status==2 >selected="selected"</#if> >审核中</option>
									<option value="3" <#if status==3 >selected="selected"</#if> >未通过</option>
									</select> 
								<input type="button" value="搜索"  onclick="sousuo()" />
							</div>
						</td>
					</tr>
					<tr>
						<td colspan="12" class="page">
						<#import "../../common/page.html" as pager>  
			         	 	<@pager.pagination page=page url="/admin/cash/showCash.html" map=param style="style1" /> 
						</td>
					</tr>
				</table>
			</form>	
			<!--提现记录列表 结束-->
					<script>
				var url = 'showCash.html?search=true';
				var xlsurl = 'showCash.html?type=export';
				var sou="";
				function sousuo(){
					var username = $("#username").val();
					if (username!=""){
						sou += "&username="+username;
					}
					var status = $("#status").val();
					if (status!=""){
						sou += "&status="+status;
					}
					var dotime1 = $("#dotime1").val();
					if (dotime1!=null&&dotime1!=""&&dotime1!="undefine"){
						sou += "&dotime1="+dotime1;
					}
					var dotime2 = $("#dotime2").val();
					if (dotime2!=null&&dotime2!=""&&dotime2!="undefine"){
						sou += "&dotime2="+dotime2;
					}
					var succtime1 = $("#succtime1").val();
					if (succtime1!=null&&succtime1!=""&&succtime1!="undefine"){
						sou += "&succtime1="+succtime1;
					}
					var succtime2 = $("#succtime2").val();
					if (succtime2!=null&&succtime2!=""&&succtime2!="undefine"){
						sou += "&succtime2="+succtime2;
					}
					if (sou!=""){
						location.href=url+sou;
					}
					
				}
				function exportxls(){
					var username = $("#username").val();
					if (username!=""){
						sou += "&username="+username;
					}
					var status = $("#status").val();
					if (status!=""){
						sou += "&status="+status;
					}
					var dotime1 = $("#dotime1").val();
					if (dotime1!=null&&dotime1!=""&&dotime1!="undefine"){
						sou += "&dotime1="+dotime1;
					}
					var dotime2 = $("#dotime2").val();
					if (dotime2!=null&&dotime2!=""&&dotime2!="undefine"){
						sou += "&dotime2="+dotime2;
					}
					if (sou!=""){
						location.href=xlsurl+sou;
					}else{
						location.href=xlsurl;
					}					
				}
				</script>	
			</div>
		</div>
		<!-- div.main_right end  -->
	</div>
	<!-- div.main end  -->
	<#include "../foot.html">
</body>
</html>
